﻿using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.DeviceManage.Project
{
    /// <summary>
    /// 创建项目表单命令
    /// </summary>
    public class CreateProjectFormCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 表单编号
        /// </summary>
        public string? FormCode { get; set; }

        /// <summary>
        /// 表单名称
        /// </summary>
        public string? FormName { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string? FormType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = true;

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 选中的检验项目ID集合
        /// </summary>
        public List<int> ProjectIds { get; set; } = new List<int>();
    }
}
